<!--
Version: 1.22
Creator: Centic/Cenetic (Artemis/Orion)
Made for Pardus (http://www.pardus.at)
-->

<html>
<head>
<title>Pardus Sector Tool</title>
<style>
/* Basic */
body{
color: white;
font-family: comic sans MS,arial rounded MT bold,arial;
}
a{
color: cyan;
}
a:hover{
color: blue;
}
a.visited{
color: cyan;
}
/* Map */
.b { background-color: #1D5087 }
.f { background-color: #000000 }
.o { background-color: #737373 }
.g { background-color: #9A0D23 }
.e { background-color: #0E2945 }
.m { background-color: #90DE07 }
.v { background-color: #5CA81F }
</style>
<script type="text/javascript" src="cookie.js"></script>
<script type="text/javascript" src="data.js"></script>
<script type="text/javascript" src="map_code_database.js"></script>
<script type="text/javascript" src="config.js"></script>
<script type="text/javascript" src="map_functions.js"></script>

<script type="text/javascript" src="building_functions.js"></script>
<script type="text/javascript" src="general.js"></script>
<script type="text/javascript">

var mapWidth = 0;
var mapHeight = 0;

function showHide(show,hide){

if(document.getElementById("nav_"+show).getAttribute("href") != null){

document.getElementById(show).style.display = "block";
document.getElementById("nav_"+show).innerHTML = "[" + document.getElementById("nav_"+show).innerHTML + "]";
document.getElementById("nav_"+show).removeAttribute("href");
var temp = hide.split(",");

for(var i = 0;i<temp.length;i++){

document.getElementById(temp[i]).style.display = "none";
document.getElementById("nav_"+temp[i]).innerHTML = document.getElementById("nav_"+temp[i]).innerHTML.replace("[","").replace("]","");
document.getElementById("nav_"+temp[i]).setAttribute("href","#");

}
}

}

function checkMenu(){

if(document.getElementById("locked").innerHTML == "no"){

document.getElementById("menu").innerHTML = '';

}

}

function start(){
show("int");
showSavedMaps(1);
showHide("tut","frequently");
showHide("tpl","gpl");
startPriceList();
writeGPL();
document.getElementsByTagName("body")[0].style.display = "block";
}

</script>
</head>
<body style="background-image:url('http://static.pardus.at/images/bgoutspace1.gif');color:white;" onLoad="start();">
<span id='nav'>
<a href='#' onClick='show("main");'>Main</a>&nbsp;&nbsp;
<a href='#' onClick='show("import_map");'>Import/Export</a>&nbsp;&nbsp;
<a href='#' onClick='show("comm");'>Commodities</a>&nbsp;&nbsp;
<a href='#' onClick='show("pl");'>Price List</a>&nbsp;&nbsp;

<a href='#' onClick='show("help");'>Help!</a>&nbsp;&nbsp;
<a href='#' onClick='show("config");'>Config</a>&nbsp;&nbsp;
<a href='#' onClick='show("credits");'>Credits</a>&nbsp;&nbsp;
</span>

<span id='main'>
<table><tr>
<td><div id='map'>No map selected.</div></td>
<td valign='top'>
</tr></table>
</span>
<span id='pl'>
<br><a href='#' onClick='showHide("tpl","gpl");' id='nav_tpl'>Price List</a>&nbsp;&nbsp;<a href='#' onClick='showHide("gpl","tpl"); sectorEconomyStats();' id='nav_gpl'>General Overview</a>

<div id='tpl'></div>
<div id='temppl' style='display:none;'>
0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|=0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|</div>
<div id='gpl'></div>
</span>

<span id='import_map'>
Code to import: <input type='text' id='mapcode'>&nbsp;&nbsp;<input type='button' id='import' value='Import!' onClick='getMapFromCode(document.getElementById("mapcode").value,"place",0);getMap();'><br>
<a href='#' onClick='importSector()'>Import Sector (from code)</a><br>
<a href='#' onClick='exportSector()'>Export Sector (to code)</a><br>
Search for a sector map: <input type='text' id='ssdata'>&nbsp;&nbsp;<input type='button' value='Search!' onClick='searchSectors()'><div id='searchresults'></div>
<div id='mapmenu' style='top: 50px; right: 5px; position: fixed;'><a href='#' onClick='startMapEditor()'>Map Editor/Creator (coming soon)</a></div><br><br><br>

<div id='place'></div>
<div id='mapdata' style='display:none;'></div>
</span>
<span id='config'>
<H2 align='center'>Configuration</H2>
Image pack location (no local imagepacks please): <input type='text' id='imagepack' onBlur='setIP();'><br>
Default building level: <input type='text' id='dblevel' onBlur='setDBL();'>
</span>
<div style="position: absolute; top: 100px; left: 100px;" id='menu' onMouseMove="checkMenu();"></div>
<div id='debug'></div>
<span id='comm'>
<table><tr><td align='center'><a href='#' onClick='dycom(1);'>Tick</a>&nbsp;&nbsp;<a href='#' onClick='dycom(4)'>Day</a>&nbsp;&nbsp;<a href='#' onClick='dycom(28)'>Week</a></td></tr><tr><td>

<div id='comdat'></div></td></tr></table>
</span>
<div id='locked' style='display:none;'>no</div>
<span id='help'>
<br><a href='#' onClick='showHide("tut","frequently")' id='nav_tut'>Tutorial</a>&nbsp;&nbsp;<a href='#' onClick='showHide("frequently","tut")' id='nav_frequently'>FAQs</a>
<div id="tut">
<p>Import a map:<br>
<br>
1. Click on the "Import Map" link at the top of the page.<br>
2a. If you have a map code put it into the box next to "Code to import" and click "Import!".<br>
2b. If you want to get map data from an existing Pardus sector type in a search phase for a sector's name in the box next to "Search for a sector map". Skip to step 5.<br>

3. Click "Search!" and there will be a list of sectors with that phase in it.<br>
4. To load a sector data code into the Pardus Sector tool hit the link "load sector" next to the sector name you want.<br>
5. Once you have clicked either "Import!" or "load sector" the sector terrain will appear below.<br>
*Note: If you the box next to "Code to import" says "NA" then post in the Pardus Sector Tool thread in the main forum on Pardus so I can make the sector map.*<br>
<br>
Add a building:<br>
<br>
1. Click on the "Main" link at the top of the page.<br>
2. Hover over any buildable tile (energy, ore, nebula or fuel).<br>
3. A menu will appear marked "Build".<br>*Note: you must click on that tile to "lock" the menu so it wont dissapear when you try to move over it.*<br>

4. Select the building you want to build on the drop down menu and hit OK.<br>
5. The menu will "unlock" and disapear with your building on the tile with a level of 1.<br>
<br>
Set a building's level:<br>
<br>
1. Make sure you're on the Main tab (if not, just click on the "Main" link at the top of the page)<br>
2. Hover over any building.<br>
3. A menu will appear marked with the building's name.<br>*Note: you must click on that tile to "lock" the menu so it wont dissapear when you try to move over it.*<br>
4. Click on the textbox next to "Level:" and change the number to whatever level you want it to be.<br>*Note: when you move your mouse off of the text box it will set the level, so make sure you keep the mouse over the textbox while you changing the level!*<br>

5. Once you move you mouse off the textbox, the building upkeep and production will change to respect the level you entered.<br>
6. Click OK to "unlock" and close the menu.<br>
<br>
Change the imagepack:<br>
<br>
1. Make sure you're on the Config tab.<br>
2. Click on the textbox next to "Image pack location" and change its contents to reflect on the location of your imagepack (if you have one).<br>
*Note: be sure to include the "/" at the end of the url, the imagepack wont work without it.*<br>
*Another Note: you have to do the permissions thing to use the local imagepack. Read <a href='http://www.pardus.at/index.php?section=faq_technical' target='_blank'>the technical FAQ</a>. Go to the bottom under "Imagepack" and read the instructions under the firefox/mozilla except put in "http://www.freewebs.com/lizard28" instead of the pardus sites.*<br>

3. Once you click on anything else the imagepack will change.<br>
*Note: changes will take effect once you load a new map or reload the page.*</p></div>
<div id="frequently">
Q: Why didn't you include the Pardus sector in the sector data list??!?!?? I mean, it would be really cool to like build in the Pardus sector and start an economy around the destroyed planets!!!!11!<br>
A: The Pardus sector is too large to be saved and I dont want to get 10 messages a day telling me that their "UBBER KEWLY AWESMOE EOCNMY" wouldn't save.<br>
<br>
Q: But...but...thats just mean!<br>
A: Deal with it.<br>
<br>
Q: How many versions are you going to make?<br>

A: As many as I want.<br>
</div>
</span>
<span id='credits'>
<H2 align='center'>Credits</H2>
<H2>Developer: <a href='http://artemis.pardus.at/sendmsg.php?to=Centic&subj=RE: Pardus Sector Tool' target='_blank'>Centic</a>/<a href='http://orion.pardus.at/sendmsg.php?to=Cenetic&subj=RE: Pardus Sector Tool' target='_blank'>Cenetic</a> (Artemis/Orion)</H3>
<H3>Special thanks to...</H3>
The Pardus Developers - use of their server and images. Plus this would have never been made without them!<br>

The Blue Sun Corporation - use of their maps to create the "Search for a sector map" data.<br>
Sbourdon - testing<br>
Gomibushi - UI sugestions<br>
Silentmob - bug reporting
<H3>Information:</H3>
Current version: 1.23<br>
Total size: 207kb<br>
Time to develop: >47hours
</span>
</body>
</html>